﻿using System;
using System.Collections.Generic;

using System.Linq;
using System.Text;

namespace com.codeplex.eatoutadvocate.Engine
{
    public class RankDescending : IComparer<Engine.EatOut>
    {
        int IComparer<Engine.EatOut>.Compare(Engine.EatOut eatOut1, Engine.EatOut eatOut2)
        {
            if (eatOut1.Score > eatOut2.Score)
                return -1;
            else if (eatOut1.Score < eatOut2.Score)
                return 1;
            else
                return 0;
        }
    }
}
